#include<stdio.h>
/*输入两个整数，求两个整数二进制格式有多少个位不同*/
int main()
{
    int num1;
    int num2;
        int count=0;
    scanf_s("%d%d", &num1, &num2);
    int num = num1 ^ num2;
    while (num != 0)
    {
        count++;
        num = num & (num - 1);
    }
    return 0;
}